﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Acme.BookStore.FormWhx.Ruku
{
    public class ItemsModel:AuditedAggregateRoot<Guid>
    {
        public Guid RuKuDetailId { get; set; } //入库明细id 外键
        /// <summary>
        /// 货品编号
        /// </summary>
        public string ? GoodsNo { get; set; }
        /// <summary>
        /// 货品名称
        /// </summary>
        public string? GoodsName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? GoodsSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 当前库存
        /// </summary>
        public int? CurrentNum { get; set; }
        /// <summary>
        /// 进货数量
        /// </summary>
        public int? PurchaseNum { get; set; }
        /// <summary>
        /// 进货金额
        /// </summary>
        public decimal? PurchaseJine { get; set; }
        /// <summary>
        /// 已入库
        /// </summary>
        public int ? YiRuKu { get; set; }
        /// <summary>
        /// 未入库
        /// </summary>
        public int ? WeiRuKu { get; set; }
        /// <summary>
        /// 入库类型
        /// </summary>
        public RuType RuKuType { get; set; }
        protected ItemsModel()
        {
        }

        public ItemsModel(Guid id, Guid ruKuDetailId, string goodsNo, string goodsName, string goodsSpec, string unit, int currentNum, int purchaseNum, decimal purchaseJine, int yiRuKu, int weiRuKu, RuType ruKuType):base(id)
        {
            Id = id;
            RuKuDetailId = ruKuDetailId;
            GoodsNo = goodsNo;
            GoodsName = goodsName;
            GoodsSpec = goodsSpec;
            Unit = unit;
            CurrentNum = currentNum;
            PurchaseNum = purchaseNum;
            PurchaseJine = purchaseJine;
            YiRuKu = yiRuKu;
            WeiRuKu = weiRuKu;
            RuKuType = ruKuType;
        }

    }
}
